﻿using MiniFox.Net;
using MiniFox.Net.Http;
using System.Net.Http.Headers;

namespace WinForWebApi.ServiceClient
{
    public class HttpServiceClient : MiniFox.Net.Http.HttpService
    {
        public HttpServiceClient(IServiceSetting setting, HttpAdapter adapter) : base(setting, adapter)
        {
        }

        protected override void SetDefaultHeaders(HttpRequestHeaders headers)
        {
            base.SetDefaultHeaders(headers);
            // 在http header中填写token
            // headers.Authorization = new AuthenticationHeaderValue("bearer", "<token填这里>");
            
        }
    }
}
